package demo.helloworld.service;

import act.db.ebean.EbeanDao;
import act.db.ebean.EbeanService;
import com.avaje.ebean.Ebean;
import com.avaje.ebean.EbeanServer;
import com.avaje.ebean.EbeanServerFactory;
import demo.helloworld.model.Metas;

import javax.inject.Inject;
import java.util.List;

/**
 * Created by vilen on 2017/3/10.
 */
public class MetasService {
    @Inject
    public EbeanDao<Integer,Metas> dao;

    public List<Metas> getMetas(String types) {
        return dao.ebean().find(Metas.class).where().eq("type",types).findList();
    }
}
